const express = require('express')
const notice = express.Router()
const {getNotice,getPageNotice, postAddNotice,getNoticeInfo} = require('../../service/notice/noticeService')

//查询所有公告信息
notice.get('/info',getNoticeInfo)
//查询最新公告
notice.get('/',getNotice)

//分页查询公告
notice.get('/page',getPageNotice)

//添加公告
notice.post('/add',postAddNotice)
module.exports = notice
